package com.caigou.bean.exam.param;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(description = "用户发送短信")
public class MsgCodeParam {

    @NotBlank(message = "不可为空")
    @Pattern(regexp = "^1[3456789]\\d{9}$",message = "手机号格式不正确")
    @ApiModelProperty(value = "手机号码", name = "tel", required = true,example = "18310013577")
    private String tel;

    @ApiModelProperty(value = "验证码类型 1注册 2登陆 3找回密码   默认为 1", name = "tel", required = false,example = "1")
    private Integer codeType = 1;


}
